<template>
  <div class="content">
    <router-view v-slot="{ Component }">
      <router-view v-slot="{ Component: ChildrenComponent }">
        <Transition
          :name="themeStore.getAnimation.page ? 'scale' : 'none'"
          appear
        >
          <component :is="ChildrenComponent || Component"></component>
        </Transition>
      </router-view>
    </router-view>
  </div>
</template>

<script setup>
import { useThemeStore } from "@/stores/modules/theme.js";

const themeStore = useThemeStore();
</script>

<style lang="less" scoped>
.content {
  position: relative;
  width: 100%;
  height: 100%;
}
</style>
